package com.henghai.zhenxuan.data.api;

import androidx.annotation.NonNull;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.BodyType;

public class UpdatePwdAPi implements IRequestApi, IRequestType {
    private String verificationCode;
    private String oldPassword;
    private String newPassword;

    public UpdatePwdAPi(String oldPassword, String newPassword) {
        this.oldPassword = oldPassword;
        this.newPassword = newPassword;
    }

    @NonNull
    @Override
    public String getApi() {
        return "/system/user/profile/updatePwd";
    }


    @NonNull
    @Override
    public BodyType getBodyType() {
        return BodyType.JSON;
    }
}
